package config

type Config struct {
	// 应用配置
	App struct {
		Mode string
		Addr string
	}
	// dtm
	Dtm Dtm
	// grpc
	Grpc Grpc
}

type Dtm struct {
	HttpAddr string `mapstructure:"http_addr"`
	GrpcAddr string `mapstructure:"grpc_addr"`
}

type Grpc struct {
	ServerAddr GrpcServerAddr `mapstructure:"server_addr"`
}

// GrpcServerAddr gRPC服务地址
type GrpcServerAddr struct {
	Order     string
	Inventory string
	Payment   string
}
